package me.firstapp.repository.shop;

import java.util.List;
import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.shop.Sku;
import me.firstapp.repository.base.EntityRepository;

public interface SkuRepository extends EntityRepository<Sku> {

	Page<Sku> findSkuPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams, String sortParam,
			String sortType, Long apiClientId);

	Sku findSkuByProductIdAndSkuName(Long productId, String name, Long apiClientId);

	List<Sku> findSkusByProductId(Long productId, Long apiClientId);

	Sku findById(Long id, Long apiClientId);
}
